import API from './constant'
import request from '../utils/request'
export const login=(username,password)=> request({
  url:API.SESSIONS,
  method:'POST',
  data:{
    username,password
  }
})
export const loginOut=()=> request({
  url:API.SESSIONS,
  method:'DELETE'
})